package com.hsh.gaoqianlianmeng.domain;

import com.hsh.gaoqianlianmeng.anno.Alia;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Objects;

@Data
public class Product {
    
    @Alia("商品编码")
    private String code;

    
    @Alia("商品名称")
    private String productName;

    
    @Alia("订单类型")
    private String type;
    
    @Alia("香港起发")
    private Integer HongKongMinNum;
    
    @Alia("单价")
    private BigDecimal unitPrice;

    @Alia("诊断")
    private String diagnosis;

    
    @Alia("用法用量")
    private String usage;


    @Alia("科室")
    private String department;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Product product = (Product) o;
        return Objects.equals(code, product.code);
    }

    @Override
    public int hashCode() {
        return Objects.hash(code);
    }
}
